package com.zhangck.bos2_0.Service.take_delivery.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zhangck.bos2_0.Service.take_delivery.wayBillIndexServices;
import com.zhangck.bos2_0.dao.WayBillQuickRepoistory;
import com.zhangck.bos2_0.index.indexRepository;

import cn.itcast.bos.domain.take_delivery.WayBill;

/** 
* @author 上午茶
* @version 创建时间：2018年6月14日 下午6:17:36 
* 类说明 
*/
@Service
@Transactional
public class wayBillIndexServicesImpl implements wayBillIndexServices {

	@Autowired
	private indexRepository indexRepository;
	

	@Autowired
	private WayBillQuickRepoistory wayBillServices;
	
	@Override
	public void taska() {
		System.out.println("开始更新索引一致");
		List<WayBill> list = wayBillServices.findAll();
		indexRepository.save(list);
	}

}
